package warpper;

public class IntegerDemo1 {
    public static void main(String[] args) {
        int a=123;
        Integer in=new Integer(a);
        Integer in1=new Integer(a);
        System.out.println(in);
        System.out.println(in1);
        System.out.println(in==in1);
        System.out.println(in.equals(in1));
        in=Integer.valueOf(a);
        in1=Integer.valueOf(a);
        System.out.println(in);
        System.out.println(in1);
        System.out.println(in==in1);
        System.out.println(in.equals(in1));
        double d=123.456;
        Double db =Double.valueOf(d);
        Double db1=Double.valueOf(d);
        System.out.println(db==db1);
        System.out.println(db.equals(db1));
    }
}
